package cn.melonlib.nars.account.model.entity;

import cn.melonlib.cores.commons.model.entity.TenantRecordEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import cn.melonlib.nars.account.model.enums.DisplayType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper = true)
@Entity(name = "AccountConfig")
@Table(name = "nars_account_config")
@ModelComment("账户配置信息")
public class AccountConfig extends TenantRecordEntity {

    @ModelComment(value = "空间大小，默认5GB",required = true)
    private Long space=5L>>30;

    @ModelComment("已使用大小(只计算本地文件大小)")
    private Long used=0L;

    @ModelComment("空间状态")
    private Boolean status=true;

    @ModelComment("排序字段，默认安装名称排序")
    private String sortField="name";

    @ModelComment("显示方式，默认列表显示")
    private DisplayType displayType=DisplayType.LIST;
}
